﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../include/admincontent.jsp" %>
<div id="location">当前位置：首页 > 扩展功能</div>
<div id="Content">
    <div class="btnbar">
        <button type="button" class="del" id="exuser_del">删除</button>
        <button type="button" class="import" id="exuser_import">导入</button>
        <button type="button" class="back" onclick="javascript:history.go(-1);">返回</button>
    </div>
    <div id="searchbox">
        <form id="sform">
            <table class="treeTable searchform">
                <thead>
                <tr>
                    <td width="80">证件号码:</td>
                    <td width="200">
                        <div><input type="text" name="code"/></div>
                    </td>
                    <td width="40">姓名:</td>
                    <td width="100">
                        <div><input type="text" name="name"/></div>
                    </td>
                    <td width="40">性别:</td>
                    <td width="80">
                        <div>
                            <select name="sex">
                                <option value="">不限</option>
                                <option value="男">男</option>
                                <option value="女">女</option>
                            </select>
                        </div>
                    </td>
                    <td width="30">
                        <button id="searchbtn" type="button" class="search"></button>
                    </td>
                    <td></td>
                </tr>
                </thead>
            </table>
        </form>
    </div>
    <table class="treeTable" id="tablelist">
        <thead>
        <tr>
            <td width="20"><input type="checkbox" class="allcheckbox" title="选择全部/取消全选"/></td>
            <td width="120">证件号码</td>
            <td width="80">姓名</td>
            <td width="30">性别</td>
            <td width="80">学历</td>
            <td width="120">毕业学校</td>
            <td width="120">所学专业</td>
            <td width="70">应聘岗位</td>
            <td width="80">招聘环节</td>
            <td width="50">通过情况</td>
            <td>备注</td>
        </tr>
        </thead>
        <tbody id="result"></tbody>
    </table>
    <div id="page"></div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        getList();
        $('#searchbtn').click(function () {
            getList();
        });

        $('#exuser_import').click(function () {
            var url = '/ExUser/import';
            openLayer('导入人员信息', url, '500px', '140px');
        });

        $('#exuser_del').click(function () {
            var url = '/ExUser/DelAction';
            DelInfo(url);
        });

    });

    function getList() {
        $("#page").myPagination({
            cssStyle: "pagination",
            ajax: {
                on: true,
                url: '/ExUser/getusers',
                param: $("#sform").serialize(),
                dataType: 'html',
                callback: function (data) {
                    $("#result").html(data);
                }
            }
        });
    }
</script>
</body>
</html>